<template>
  <el-form :model="form" label-width="170px" label-position="left">
    <el-form-item label="认证类型">
      <el-radio v-model="form.type" :label="1">企业</el-radio>
      <el-radio v-model="form.type" :label="2">个体工商户</el-radio>
      <el-radio v-model="form.type" :label="3">个人</el-radio>
    </el-form-item>
    <el-form-item label="企业名称">
      <el-input v-model="form.title" size="medium" class="small-input"></el-input>
    </el-form-item>
    <el-form-item label="法人姓名">
      <el-input v-model="form.name" size="medium" class="small-input"></el-input>
    </el-form-item>
    <el-form-item label="法人身份证号">
      <el-input v-model="form.id" size="medium" class="small-input"></el-input>
    </el-form-item>
    <el-form-item label="法人身份证正面照">
      <setting-upload/>
      <span class="tips">出现头像照片的那一面</span>
    </el-form-item>
    <el-form-item label="法人身份证反面照">
      <setting-upload/>
      <span class="tips">出现国徽图片的那一面</span>
    </el-form-item>
    <el-form-item label="营业执照">
      <setting-upload/>
      <span class="tips">示例：</span>
    </el-form-item>
    <el-form-item label="营业执照号">
      <el-input v-model="form.license" size="medium" class="small-input"></el-input>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="ModifyPassword">提交</el-button>
      <el-button type="info">重置</el-button>
    </el-form-item>
  </el-form>
</template>

<script>
import SettingUpload from '@/components/upload/SettingUpload'

export default {
  // 全局感知
  name: "Authentication",

  // 模板依赖
  components: { SettingUpload },
  filters: {},

  // 接口
  props: {},

  // 本地状态
  data () {
    return {
      form: {
        type: 1,
        title: '',
        name: '',
        id: '',
        license: ''
      }
    };
  },
  computed: {},

  // 事件
  watch: {},
  beforeCreate () { },
  created () { },
  beforeMount () { },
  mounted () { },
  beforeUpdate () { },
  updated () { },
  beforeDestroy () { },
  destroyed () { },

  // 非响应式的属性
  methods: {
    ModifyPassword () {
      this.$router.push({ name: 'PasswordChange' })
    }
  }
}
</script>

<style lang="less" scoped>
.small-input {
  width: 280px;
}
.tips {
  margin-left: 10px;

  color: #666;

  font-size: 12px;
}
</style>